{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# TERMINAL with .STRINGZ" ] }, { "cell_type": "code", "execution_count": 15, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Assembled! Use %dis or %dump to examine; use %exe to run.\n" ] } ], "source": [ ".ORIG x3000\n", ".SET MODE TERMINAL\n", " LEA R0, DATA\n", " TERMINAL R0\n", " HALT\n", "DATA: .STRINGZ \"Hello, world!\\n\"\n", ".END" ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "============================================================\n", "Memory dump:\n", "============================================================\n", " x3000: xE002\n", " x3001: xD000\n", " x3002: xF025\n", " x3003: x0048\n", " x3004: x0065\n", " x3005: x006C\n", " x3006: x006C\n", " x3007: x006F\n", " x3008: x002C\n", " x3009: x0020\n", " x300A: x0077\n", " x300B: x006F\n", " x300C: x0072\n", " x300D: x006C\n", " x300E: x0064\n", " x300F: x0021\n", " x3010: x000A\n", " x3011: x0000\n" ] } ], "source": [ "%dump x3000 x3011" ] }, { "cell_type": "code", "execution_count": 17, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
Hello, world!\n", "" ], "text/plain": [ "
Hello, world!\n", "" ], "text/plain": [ "